
 /** 
 * Project Name:b2b-merBusi_MSX00001671 
 * File Name:WechatPublicPlatformReq.java 
 * Package Name:com.umpay.dto.merBusi.req.payment 
 * Date:2018年6月28日上午11:17:58 
 * Copyright (c) 2018, xmfsmasara@163.com.com All Rights Reserved. 
 * 
*/  
  
package com.umpay.dto.merBusi.req.payment;

import org.hibernate.validator.constraints.NotEmpty;

import com.umpay.annotation.Pattern;
import com.umpay.dto.merBusi.req.CommonBusiReq;

 /**
  * ClassName:WechatPublicPlatformReq <br/>
  * Function: TODO ADD FUNCTION. <br/>
  * Reason:   TODO ADD REASON. <br/>
  * Date:     2018年6月28日 上午11:17:58 <br/>
  * @author   wangpengbo
  * @version
  * @see
  */
 public class WechatPublicPlatformReq extends CommonBusiReq{

     @NotEmpty(message = "商户号不能为空")
     @Pattern(message = "商户号格式不正确")
     private String merId;
     @NotEmpty(message = "后台通知地址不能为空")
     @Pattern(message = "后台通知地址格式不正确")
     private String notifyUrl;
     @NotEmpty(message = "交易号不能为空")
     @Pattern(message = "交易号格式不正确")
     private String tradeNo;	//联动交易号
     @NotEmpty(message = "支付交易流水号不能为空")
     @Pattern(message = "支付交易流水号格式不正确")
     private String merTrace;	//支付交易流水
     @NotEmpty(message = "支付类型不能为空")
     @Pattern(message = "支付类型格式不正确")
     private String payType;	//支付方式
     @NotEmpty(message = "金额不能为空")
     @Pattern(message = "金额格式不正确")
     private String amount;	//金额
     //@Pattern(message = "二维码有效期格式不正确")
     private String expireTime;	//二维码有效期

     private String openId;	//用户授权标识

     private String appId;	//微信或支付宝appId

     @Pattern(message = "备注信息格式不正确")
     private String remark;	//备注信息
     @NotEmpty(message = "业务产品号不能为空")
     @Pattern(message = "业务产品号格式不正确")
     private String bProductId;	//变长8	业务产品号
     @NotEmpty(message = "支付产品不能为空")
     @Pattern(message = "支付产品格式不正确")
     private String pProductId;	//定长8	产品号
     @Pattern
     private String goodsInf;
     @Pattern
     private String goodsId;
     public String getMerId() {
         return merId;
     }
     public void setMerId(String merId) {
         this.merId = merId;
     }
     public String getNotifyUrl() {
         return notifyUrl;
     }
     public void setNotifyUrl(String notifyUrl) {
         this.notifyUrl = notifyUrl;
     }
     public String getTradeNo() {
         return tradeNo;
     }
     public void setTradeNo(String tradeNo) {
         this.tradeNo = tradeNo;
     }
     public String getMerTrace() {
         return merTrace;
     }
     public void setMerTrace(String merTrace) {
         this.merTrace = merTrace;
     }
     public String getPayType() {
         return payType;
     }
     public void setPayType(String payType) {
         this.payType = payType;
     }
     public String getAmount() {
         return amount;
     }
     public void setAmount(String amount) {
         this.amount = amount;
     }
     public String getExpireTime() {
         return expireTime;
     }
     public void setExpireTime(String expireTime) {
         this.expireTime = expireTime;
     }
     public String getOpenId() {
         return openId;
     }
     public void setOpenId(String openId) {
         this.openId = openId;
     }
     public String getAppId() {
         return appId;
     }
     public void setAppId(String appId) {
         this.appId = appId;
     }
     public String getRemark() {
         return remark;
     }
     public void setRemark(String remark) {
         this.remark = remark;
     }
     public String getbProductId() {
         return bProductId;
     }
     public void setbProductId(String bProductId) {
         this.bProductId = bProductId;
     }
     public String getpProductId() {
         return pProductId;
     }
     public void setpProductId(String pProductId) {
         this.pProductId = pProductId;
     }

     public String getGoodsInf() {
         return goodsInf;
     }
     public void setGoodsInf(String goodsInf) {
         this.goodsInf = goodsInf;
     }

     public String getGoodsId() {
         return goodsId;
     }
     public void setGoodsId(String goodsId) {
         this.goodsId = goodsId;
     }
     @Override
     public String toString() {
         StringBuilder builder = new StringBuilder();
         builder.append("WechatPublicPlatformReq [merId=");
         builder.append(merId);
         builder.append(", notifyUrl=");
         builder.append(notifyUrl);
         builder.append(", tradeNo=");
         builder.append(tradeNo);
         builder.append(", merTrace=");
         builder.append(merTrace);
         builder.append(", payType=");
         builder.append(payType);
         builder.append(", amount=");
         builder.append(amount);
         builder.append(", expireTime=");
         builder.append(expireTime);
         builder.append(", openId=");
         builder.append(openId);
         builder.append(", appId=");
         builder.append(appId);
         builder.append(", remark=");
         builder.append(remark);
         builder.append(", bProductId=");
         builder.append(bProductId);
         builder.append(", pProductId=");
         builder.append(pProductId);
         builder.append(", goodsInf=");
         builder.append(goodsInf);
         builder.append(", goodsId=");
         builder.append(goodsId);
         builder.append("]");
         return builder.toString();
     }




 }
  